<template>
  <view>
    <button @click="showDialog = true">打开对话框</button>
    <v-dialog v-model:value="showDialog" title="对话框标题" >
      <view>
        <text>对话框内容区域</text>
      </view>
    </v-dialog>
  </view>
</template>

<script setup>
import { ref } from 'vue';

const showDialog = ref(false);

const confirm = () => {
  showDialog.value = false;
  console.log('确认按钮点击');
};
</script>